<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysUserBean.id}"/>
		<f:event type="preRenderView" listener="#{sysUserBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys User"/>

	<ui:define name="header">
		Sys User
	</ui:define>

	<ui:define name="subheader">
		View existing Sys User
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysUserBeanSysUserUserNo" value="User No:"/>
			<h:outputText id="sysUserBeanSysUserUserNo" value="#{sysUserBean.sysUser.userNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserBeanSysUserHrEmp" value="Hr Emp:"/>
			<h:link id="sysUserBeanSysUserHrEmp" outcome="/hrEmp/view" value="#{sysUserBean.sysUser.hrEmp}">
				<f:param name="id" value="#{sysUserBean.sysUser.hrEmp.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysUserBeanSysUserUserName" value="User Name:"/>
			<h:outputText id="sysUserBeanSysUserUserName" value="#{sysUserBean.sysUser.userName}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserBeanSysUserUserPassword" value="User Password:"/>
			<h:outputText id="sysUserBeanSysUserUserPassword" value="#{sysUserBean.sysUser.userPassword}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserBeanSysUserSysUserParameters" value="Sys User Parameters:"/>
			<h:dataTable id="sysUserBeanSysUserSysUserParameters" styleClass="data-table" value="#{forgeview:asList(sysUserBean.sysUser.sysUserParameters)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys User Account"/>
					</f:facet>
					<h:link outcome="/sysUserParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysUserAccount" value="#{forgeview:display(_item.sysUserAccount)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Parameter Master"/>
					</f:facet>
					<h:link outcome="/sysUserParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysParameterMaster" value="#{forgeview:display(_item.sysParameterMaster)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Param String Val"/>
					</f:facet>
					<h:link outcome="/sysUserParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemParamStringVal" value="#{_item.paramStringVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Param Number Val"/>
					</f:facet>
					<h:link outcome="/sysUserParameter/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemParamNumberVal" value="#{_item.paramNumberVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysUserBeanSysUserSysUserDatatableConfigs" value="Sys User Datatable Configs:"/>
			<h:dataTable id="sysUserBeanSysUserSysUserDatatableConfigs" styleClass="data-table" value="#{forgeview:asList(sysUserBean.sysUser.sysUserDatatableConfigs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow Is Display"/>
					</f:facet>
					<h:link outcome="/sysUserDatatableConfig/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowIsDisplay" value="#{_item.allowIsDisplay}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Allow Is Edit"/>
					</f:facet>
					<h:link outcome="/sysUserDatatableConfig/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemAllowIsEdit" value="#{_item.allowIsEdit}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Seq No"/>
					</f:facet>
					<h:link outcome="/sysUserDatatableConfig/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSeqNo" value="#{_item.seqNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>